{% extends "index.html" %}

{% block content %}
{% for article in object_list %}
<h2><a href="/{{article.slug}}">{{ article.title }}</a></h2>
<div class="body">
{{ article.body }}
</div>
<div class="comments">
{{ article.comment_set.count }}
</div>
<hr />
{% endfor %}
<a href="/addarticle/">Add new article</a>
{% endblock %}